<script>
var i=prompt("请您输入圆的半径：")

alert("圆的面积为"+3.14*i*i)

</script>